package main

import (
	"github.com/hajimehoshi/ebiten/v2"
	"log"
	"snake/snake_demo/game"
)

func main() {
	ebiten.SetWindowSize(game.ScreenWidth, game.ScreenHeight)
	ebiten.SetWindowTitle("Snake Game")
	ebiten.SetMaxTPS(10) // 设置帧率为每秒10帧
	if err := ebiten.RunGame(game.NewGame()); err != nil {
		log.Fatal(err)
	}
}
